package com.jwx.mycar.service.impl;

import com.jwx.mycar.entity.po.Stat;
import com.jwx.mycar.mapper.StatMapper;
import com.jwx.mycar.service.StatService;
import com.jwx.mycar.utils.KeyUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @description:
 * @author: jwx
 * @time: 2019/12/4 20:09
 */
@Service
public class StatServiceImpl implements StatService {
    @Autowired
    StatMapper statMapper;
    @Override
    public void save(Stat stat) {
        stat.setStateId(KeyUtil.genUniqueKey());
        statMapper.add(stat);
    }
    public void upAdd(String picId){

    };

}
